@use 'element-ui.scss';
@use 'ruoyi.scss';
@use 'sidebar';
@import 'normalize.css';

:root {
  --el-font-size-base: 12.3px;
  --el-card-padding:18px;
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

div:focus {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: ' ';
        clear: both;
        height: 0;
    }
}

//main-container全局样式
.app-main {
    min-height: 100%;
}

.app-container {
    padding: 10px;
}

.el-table {
    .el-table__header-wrapper,
    .el-table__fixed-header-wrapper {
        th {
            word-break: break-word;
            background-color: #e7e7e7;
            color: #515a6e;
            height: 40px;
            font-size: 13px;
        }
    }

    .el-table__body-wrapper {
        .el-button [class*='el-icon-'] + span {
            margin-left: 1px;
        }
    }
}

/* model样式 */
.el-dialog {
    .el-dialog__header {
        flex-shrink: 0;
        font-size: 1.1em;
        font-weight: 700;
        padding: 0.6em 2.8em 0.6em 1em;
        border-bottom: 1px solid #ebeef5;
        background-color: #f8f8f8;
        border-radius: 4px 4px 0 0;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;

        .el-dialog__headerbtn {
            top: 15px;
        }

        .is_drag {
            cursor: move;
        }
    }

    .el-dialog__body{
      padding:  20px 15px 15px 15px;
    }

    .el-dialog__footer {
        padding: 10px 16px;
        text-align: right;
        background: transparent;
        border-top: 1px solid #e8e8e8;
        border-radius: 0 0 4px 4px;
    }
}
.el-dialog:has(.el-dialog__header){
  padding: 0;
  .el-dialog__headerbtn{
    top: 0;
  }
}

.warper {
    width: 200px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    border: 1px solid saddlebrown;
}

/* 重置引导组件样式(类似element-ui个人使用) */
.intro-tooltip {
    color: #ffff;
    background: #2c3e50;
}

/* 引导提示框的位置 */
.introjs-bottom-left-aligned {
    left: 45% !important;
}

.introjs-right,
.introjs-left {
    top: 30%;
}

.intro-highlight {
    background: rgba(255, 255, 255, 0.5);
}

.introjs-arrow.left {
    border-right-color: #2c3e50;
}

.introjs-arrow.top {
    border-bottom-color: #2c3e50;
}

.introjs-arrow.right {
    border-left-color: #2c3e50;
}

.introjs-arrow.bottom {
    border-top-color: #2c3e50;
}

/* 提示框头部区域 */
.introjs-tooltip-header {
    padding-right: 0 !important;
    padding-top: 0 !important;
}

.introjs-skipbutton {
    color: #409eff !important;
    font-size: 14px !important;
    font-weight: normal !important;
    padding: 8px 10px !important;
}

.introjs-tooltipbuttons {
    border: none !important;
}

.introjs-tooltiptext {
    font-size: 14px !important;
    padding: 15px !important;
}

/* 提示框按钮 */
.introjs-tooltipbuttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.introjs-button {
    width: 50px !important;
    text-align: center;
    padding: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
    border: none !important;
}

.introjs-button:last-child {
    margin-left: 10px;
}

.introjs-prevbutton {
    color: #606266 !important;
    background: #fff !important;
    border: 1px solid #dcdfe6 !important;
}

.introjs-nextbutton {
    color: #fff !important;
    background-color: #409eff !important;
    border-color: #409eff !important;
}

.introjs-disabled {
    color: #9e9e9e !important;
    border-color: #bdbdbd !important;
    background-color: #f4f4f4 !important;
}

.el-card {
    background-color: rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar-track-piece {
    //滚动条凹槽的颜色，还可以设置边框属性
    background-color: #f8f8f8;
}

::-webkit-scrollbar {
    //滚动条的宽度
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-thumb {
    //滚动条的设置
    background-color: #dddddd;
    background-clip: padding-box;
    min-height: 28px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
}

.el-form-item__label {
    padding-bottom: 5px !important;
}

/* PC端样式 */
@media (min-width: 768px) {
    .ql-editor img {
        max-width: 100%;
        height: auto;
    }
}

/* 手机端样式 */
@media (max-width: 767px) {
    .ql-editor img {
        width: 100%;
        height: auto;
    }
}
// 如果富文本编辑器内容过多，会将富文本编辑器功能按钮移除屏幕
.ql-toolbar.ql-snow + .ql-container.ql-snow {
    height: 600px;
}

.pageload_close {
    position: absolute;
    right: 80px;
    top: 50px;
    color: #409eff;
    font-size: 18px;
    width: 50px;
    cursor: pointer;
    text-align: center;
    padding: 2px 5px;
}

.pageload_close:hover {
    color: #ffffff;
    background-color: #409eff;
}

.timepick-width-prepend {
    display: inline-block;
    align-items: center;
    .prepend-text {
      height: 24px;
        background: #f5f7fa;
        color: #909399;
        border-right: none;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        cursor: default;

        :focus,
        :hover {
            border-color: #dcdfe6 !important;
        }
    }
    .prepend-text:focus,
    .prepend-text:hover {
        border-color: #dcdfe6 !important;
    }
    .el-input__inner {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
}

.el-notification__content {
    word-wrap: break-word;
    word-break: break-all;
    p {
        text-align: left;
    }
}
.el-card{
  border-radius: 25px
}

//.el-button{
//  height: 28px;
//}
.el-button:has(.svg-icon){
  padding:0 15px;
}
